package jungsun;

import java.util.Scanner;

public class J10Return {
	// return문을 사용하는 메서드
	public static void main(String[]args){
		int x,y; // 사칙연산할 입력값
		int Sum = 0,Minus = 0,Multiple = 0,Divide = 0;
		Scanner sc = new Scanner(System.in);
		System.out.println("x,y값을 입력하세요?");
		x =sc.nextInt();
		y =sc.nextInt();
		//먼저 메서드를 호출하구
		//메서드가  return 한 값을 변수에 저장
		Sum=getSum(x,y);
		Minus=getMinus(x,y);
		Multiple=getMultiple(x,y);
		Divide=getDivide(x,y);
		
		System.out.println(x);
		System.out.println(y);
		System.out.println(Sum);
		System.out.println(Minus);
		System.out.println(Multiple);
		System.out.println(Divide);
		
	sc.close();
		
		
		
	}//main

	private static int getDivide(int x, int y) {
		  return x / y;
		
	}

	private static int getMultiple(int x, int y) {
		
		return x * y;
	}

	private static int getMinus(int x, int y) {

	return x - y;
		
	}

	private static int getSum(int x, int y) {
		       
				return x + y;
		
	}

}
